<!DOCTYPE html>
<html>
{include file='/common/_meta'}
<body>
	<!-- 头部 -->
{include file='/common/top'}
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
			            <!-- Page Sidebar -->
                {include file='/common/left'}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <a href="{:url('Index/index')}">系统</a>
                        </li>
                        <li class="active">文章管理</li>
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="添加用户" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '{:url('arti/add')}'"> <i class="fa fa-plus"></i> 发布新文章
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                    <table class="table table-bordered table-hover">
                        <thead class="">
                            <tr styl>
                                <th class="text-center" width="3%">ID</th>
                                <th class="text-center" >文章标题</th>
                                <th class="text-center" width="12%">所属栏目</th>
                                <th class="text-center" width="8%">发布人</th>
<!--                                 <th class="text-center">友情链接</th>
 -->                                <th class="text-center" width="5%">文章图片</th>
                                <th class="text-center" width="4%">置顶</th>
                                <th class="text-center" width="4%">显示</th>
                                <th class="text-center" width="10%">发布时间</th>
                                <th class="text-center" width="12%">操作</th>
                            </tr>
                        </thead>
                        
                        {volist name="artilist" id="article"}
                        <tbody>
                                <tr>
                                <td align="center">{$article.ar_id}</td>
                                <td >{$article.ar_title|cut_str=###, 25}</td>
                                <td align="center">{$article.cate_name}</td>
                                <td align="center">{$article.ar_autor}</td>
<!--                                 <td align="center">{$article.ar_linkurl}</td>
 -->                                <td align="center">
                                {if condition="$article['ar_thumbnail'] neq ''"}
                                    <img style="height: 30px" src="__upload__/{$article.ar_thumbnail}" />
                                {else /}
                                    暂无图片
                                {/if}
                                </td>
                                <td align="center">
                                
                                {if condition="$article['ar_top'] eq 1"}
                                    是
                                {else /}
                                    否
                                {/if}

                                </td>
                                  <td align="center">
                                
                                {if condition="$article['ar_status'] neq 0"}
                                    显示
                                {else /}
                                    隐藏
                                {/if}

                                </td>
                                <td align="center">{$article.ar_addtime|date='Y-m-d',###}</td>
                                <td align="center">
                                    <a href="{:url('edit',array('ar_id'=>$article['ar_id']))}" class="btn btn-primary btn-sm shiny">
                                        <i class="fa fa-edit"></i> 编辑
                                    </a>
                                    <a href="#" onClick="warning('确实要删除吗', '{:url('del',array('ar_id'=>$article['ar_id']))}')" class="btn btn-danger btn-sm shiny">
                                        <i class="fa fa-trash-o"></i> 删除
                                    </a>
                                </td>
                            </tr>
                        </tbody>
                        {/volist}
                    </table>
                </div>
                <div> 
                    {$artilist->render()}
              	</div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    {include file='/common/footer'}    


</body></html>